//
//  transferor.h
//  smart_transferor
//
//  Created by  on 11-11-2.
//  Copyright (c) 2011年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FileMetaInfo.h"



typedef enum
{
    kNetworkDisconnected,
    kRecvError,
    kFoundedHostsNum,
    kTransferHostsNum
} NotifyCode;

@protocol TransferorCallback <NSObject>                
- (void)didSendFinished:(int) sendId;
- (void)newFileComing:(FileMetaInfo *)file identity:(int)recvid;
- (void)didRecvFinished:(int)recvid;
- (void)notify:(NotifyCode)code :(int)param1 :(int)param2;
@end

@protocol Transferor <NSObject>
- (int)send:(FileMetaInfo *) file;
- (int)startListen;
- (void)setCallback:(id<TransferorCallback>) callback;
- (void)actionForRecv:(int)recvId accept:(bool)isAccept;  
@end